package com.yunxi.model.order;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 零售订单明细
 * </p>
 *
 * @author 
 * @since 2019-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("pms_order_customer_detail")
@ApiModel(value="OrderCustomerDetail对象", description="零售订单明细")
public class OrderCustomerDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单明细ID")
    @TableId(value = "ORDER_CUSTOMER_DETAIL_ID", type = IdType.UUID)
    private String orderCustomerDetailId;

    @ApiModelProperty(value = "零售单编号")
    @TableField("ORDER_CUSTOMER_NO")
    private String orderCustomerNo;

    @ApiModelProperty(value = "客户编号")
    @TableField("CUSTOMER_NO")
    private String customerNo;

    @ApiModelProperty(value = "产品代码")
    @TableField("PRODUCT_CODE")
    private String productCode;

    @ApiModelProperty(value = "内饰颜色代码")
    @TableField("COLOR_CODE_IN")
    private String colorCodeIn;

    @ApiModelProperty(value = "内饰颜色名称")
    @TableField("COLOR_NAME_IN")
    private String colorNameIn;

    @ApiModelProperty(value = "外饰颜色代码")
    @TableField("COLOR_CODE_OUT")
    private String colorCodeOut;

    @ApiModelProperty(value = "外饰颜色名称")
    @TableField("COLOR_NAME_OUT")
    private String colorNameOut;

    @ApiModelProperty(value = "电池包代码")
    @TableField("BATTARY_PACK_CODE")
    private String battaryPackCode;

    @ApiModelProperty(value = "电池包名称")
    @TableField("BATTARY_PACK_NAME")
    private String battaryPackName;

    @ApiModelProperty(value = "选装包代码")
    @TableField("CUSTOM_PACK_CODE")
    private String customPackCode;

    @ApiModelProperty(value = "选装包名称")
    @TableField("CUSTOM_PACK_NAME")
    private String customPackName;

    @ApiModelProperty(value = "数量只会是1")
    @TableField("NUM_")
    private Integer num;

    @ApiModelProperty(value = "是否有库存")
    @TableField("IS_LOW_STOCK")
    private Integer isLowStock;

    @ApiModelProperty(value = "备注")
    @TableField("INFO")
    private String info;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField("UPDATE_BY")
    private String updateBy;

    @ApiModelProperty(value = "状态1启用0禁用")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DEL")
    private Integer isDel;

    @ApiModelProperty(value = "备注")
    @TableField("MEMO")
    private String memo;

    @ApiModelProperty(value = "版本")
    @TableField("VERSION")
    private Integer version;

    @ApiModelProperty(value = "是否发送")
    @TableField("IS_SEND")
    private Integer isSend;

    @ApiModelProperty(value = "型谱15位码")
    @TableField("VEHICLE_CODE")
    private String vehicleCode;

    @ApiModelProperty(value = "型谱名称")
    @TableField("VEHICLE_NAME")
    private String vehicleName;

    @ApiModelProperty(value = "app订单流水号")
    @TableField("ORDER_NO")
    private String orderNo;


    @ApiModelProperty(value = "轮毂编号")
    private String hubCode;

    @ApiModelProperty(value = "B包编号")
    private String batteryPackCode;

}
